/** * @title: 购物车 * @description: * @author JUN */
<template>
	<view class="shopcar">
		
		<template v-if="shopCarMenuList.length">
			<!-- 购物列表 -->
			<shop-list class="shopList"></shop-list>
			
			<!-- 收获地址 -->
			<add-ress :menus="menus" :enterprise="enterprise" :member="member" :selectExptxt="selectExptxt" :selectExptxtMenu="selectExptxtMenu"></add-ress>
		</template>
		
		<template v-else>
			<view class="empty">空空如也~</view>
		</template>
		
		<u-toast ref="uToast" />
		
		<!-- 底部菜单栏 -->
		<tab-bar></tab-bar>
	</view>
</template>

<script>
	import {
		createNamespacedHelpers
	} from 'vuex'
	const {
		mapState,
		mapMutations
	} = createNamespacedHelpers('unSignModule')
	
import addRess from './components/address.vue';
import shopList from './components/shopList.vue';

export default {
	components: {
		addRess,
		shopList
	},
	data() {
		return {
			
		};
	},
	computed:{
		...mapState(["shopCarMenuList","menus","enterprise","selectExptxt","selectExptxtMenu"]),
		member(){
			return this.$store.state.userModule.member
		}
	},
	methods: {
		
	}
};
</script>

<style lang="scss" scoped>
.shopcar {
	height: calc(100% - 100rpx);
	.empty{
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}
</style>
